<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="./favicon.ico" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>机器狗</title>
  </head>
  <body>
  <script>
    function resizeRoot() {
      var deviceWidth = document.documentElement.clientWidth;
      // document.documentElement.style.fontSize = parseFloat((deviceWidth / 1920) * 100).toFixed(3) - 0.01 + 'px';

      document.documentElement.style.fontSize = "100px";
      if (deviceWidth < 1366) {
        document.documentElement.style.fontSize = "72px";
      } else {
        document.documentElement.style.fontSize = parseFloat((deviceWidth / 1920) * 100).toFixed(3) - 0.01 + 'px';
      }
    }

    resizeRoot();
    window.onresize = function () {
      resizeRoot();
    }
  </script>
    <div id="app"></div>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>
